package aop;

import aop.bean.Student;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BasedXmlAPP {
    public static void main(String[] args) {
        final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("aop\\xml\\beans.xml");
        final Student student = (Student) context.getBean("student");

        student.getName();
        student.getAge();
        student.printThrowException();
    }
}
